package com.heying.springcore.auto;

import com.heying.springcore.xml.AAA;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {


    public static void main(String[] args) {

        //加载classpath下的配置文件，加载ioc容器。创建好beanfactory
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext.xml");
        Driver driver = context.getBean("driver" ,Driver.class);
        driver.drive();

    }
}
